<template>
  <div class="sidebar">
    <el-menu
      router
      class="sidebar-el-menu"
      background-color="#545c64"
      text-color="#fff"
      :collapse="collapse"
      active-text-color="#ffd04b">
      <el-submenu index="4">
        <template slot="title">
          <i class="el-icon-date"></i>
          <span slot="title">货代</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="form">货代公司</el-menu-item>
          <el-menu-item index="editor">渠道</el-menu-item>
          <el-menu-item index="markdown">仓库</el-menu-item>
          <!--          <el-menu-item index="upload">文件上传</el-menu-item>-->
        </el-menu-item-group>
      </el-submenu>
    </el-menu>

  </div>
</template>

<script>
import axios from '../../util/axios_config'

export default {
  name: 'HelloWorld',
  data() {
    return {
      collapse: false,
      menuItems: [], // 用于存储从后端获取的菜单项数据
      dialogFormVisible: false, //添加弹出框,
      form: {
        freightForward: ""
      }
    }
  },
  created() {
  },
  methods: {

  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.sidebar {
  display: block;
  position: absolute;
  top: 70px;
  left: 0;
  bottom: 0;
  height: 100%;
  background-color: rgb(50, 65, 87);
}

.sidebar-el-menu {
  width: 250px;
}

.sidebar > ul {
  height: 100%;
}
.icons {
  margin-left: 10px; /* 根据需要调整间距 */
  display: none;
}
/* 鼠标悬停时显示i标签 */
.menu-item:hover .icons {
  display: inline-block;
}

.add{
  margin-left: 10px; /* 根据需要调整间距 */
}

</style>
